projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4226e8
)
(xmenu_show): Don't look in menubar for core.height if no menu bar.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 19 May 1994 05:56:21 +0000
(
05:56
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 19 May 1994 05:56:21 +0000
(
05:56
+0000)
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index 2cb5974b4e564e110810129fd64d88fffbe7c4a5..a30c4ac29dfd52df3dfbd911267fb18770a27068 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-1427,9
+1427,10
@@
xmenu_show (f, x, y, menubarp, keymaps, title, error)
menubarp = 0;
/* Offset the coordinates to root-relative. */
+ if (f->display.x->menubar_widget != 0)
+ y += f->display.x->menubar_widget->core.height;
XtTranslateCoords (f->display.x->widget,
- x, y + f->display.x->menubar_widget->core.height,
- &root_x, &root_y);
+ x, y, &root_x, &root_y);
x = root_x;
y = root_y;